<template>
	<view class="selectDiv">
		<view class="chooseMaterial" @click="chooseMaterial">
			<view class="chooseMaterial-title">{{message}}</view>
			<u-icon class="chooseMaterial-downImage" name="arrow-down-fill" color="#4EAAE6" size="14">
			</u-icon>
		</view>
		<u-select v-model="show" :list="list" @confirm="confirm"></u-select>
	</view>
</template>

<script>
	export default {
		props:{
			isshow:Boolean,
			list:{
				type:Array,
				default:[]
			}
		},
		data() {
			return {
				message:'资金',
				show:false
			};
		},
		methods:{
			chooseMaterial(){
				this.show=true;
			},
			// 下拉确定
			confirm(e){
				this.message=e[0].label;
				this.$emit("confirm",e);
			}
		}
	}
</script>

<style lang="scss">
	.chooseMaterial {
		float: right;
		height: 40rpx;
		line-height: 40rpx;
		border: 1rpx solid #4EAAE6;
		border-radius: 10rpx;
		padding-left: 23rpx;
		padding-right: 23rpx;
	}

	.chooseMaterial-title {
		line-height: 40rpx;
		float: left;
		font-size: 22rpx;
		color: #333333;
	}

	.chooseMaterial-downImage {
		margin-left: 10rpx;
	}
</style>
